home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Programming / QuakeTools / src / libqdisplay / texture.h < prev   
Encoding:
C/C++ Source or Header  |  1998-06-12  |  1.4 KB  |  41 lines

  1. #ifndef TEXTURE_H
  2. #define TEXTURE_H
  3. #include "poly.h"
  4. #include "surface.h"
  5.  
  6. #define    DENSITY_WATER    50
  7. #define    DENSITY_SLIME    75
  8. #define    DENSITY_LAVA    90
  9. extern unsigned char *waterTransparency;    // 50
  10. extern unsigned char *slimeTransparency;    // 75
  11. extern unsigned char *lavaTransparency;        // 90
  12. extern unsigned char *preTransparency;        // 
  13. #define    watertransp(x, y)    (waterTransparency[(((int)(y)) << 8) + ((int)(x))])
  14. #define    slimetransp(x, y)    (slimeTransparency[(((int)(y)) << 8) + ((int)(x))])
  15. #define    lavatransp(x, y)    (lavaTransparency[(((int)(y)) << 8) + ((int)(x))])
  16. #define    pretransp(x, y)        (preTransparency[(((int)(y)) << 8) + ((int)(x))])
  17.  
  18. #ifdef    FAST_WARP
  19. extern int *swim_u, *swim_v, swim_phase;
  20. extern int swim_u0[WARP_X >> MIPMAP_0], swim_v0[WARP_X >> MIPMAP_0];
  21. extern int swim_u1[WARP_X >> MIPMAP_1], swim_v1[WARP_X >> MIPMAP_1];
  22. extern int swim_u2[WARP_X >> MIPMAP_2], swim_v2[WARP_X >> MIPMAP_2];
  23. extern int swim_u3[WARP_X >> MIPMAP_3], swim_v3[WARP_X >> MIPMAP_3];
  24. extern int *swim_um[MIPMAP_MAX];
  25. extern int *swim_vm[MIPMAP_MAX];
  26. #endif
  27.  
  28. extern unsigned char *texture;
  29. extern int textureMask1, textureMask2;
  30. extern int textureRow;
  31. extern short int textureShift1, textureShift2;
  32. extern short int textureMip;
  33. extern short int textureType;
  34.  
  35. short int compute_mip_level(__memBase, int face);
  36. void compute_texture_gradients(__memBase, struct texture *Text, short int mip);
  37. void draw_span(int y, int sx, int ex);
  38. void update_water(void);
  39.  
  40. #endif
  41.